package estyle.auto.nkornilova.applogicImp;

/**
 * Created with IntelliJ IDEA.
 * User: nkornilova
 * Date: 22.04.13
 * Time: 17:46
 * To change this template use File | Settings | File Templates.
 */


public class NavigationHelper extends DriverBasedHelper {

    private String baseUrl;

    public NavigationHelper(ApplicationManager manager) {
        super(manager.getWebDriver());
        this.baseUrl = manager.getBaseUrl();
    }

    public void openMainPage() {
        driver.get(baseUrl);
    }

    public void openRelativeUrl(String url) {
        driver.get(baseUrl + url);
    }

    public void gotoLoginUrl()
    {
        driver.get(baseUrl + "login.do");
    }
}